<?php

class MyLinkPager extends CLinkPager
{
    protected function createPageButton($label,$page,$class,$hidden,$selected)
        {
                if($hidden || $selected)
                        $class.=' '.($hidden ? self::CSS_HIDDEN_PAGE : self::CSS_SELECTED_PAGE);
                return '<li class="'.$class.'">'.CHtml::ajaxLink($label,$this->createPageUrl($page)).'</li>';
        }
}
?>